package com.farm.shop.service.impl;

import com.farm.shop.dao.FarmBannerDao;
import com.farm.shop.domain.FarmBannerDO;
import com.farm.shop.service.FarmBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class FarmBannerServiceImpl implements FarmBannerService {
    @Autowired
    private FarmBannerDao farmBannerDao;

    @Override
    public List<FarmBannerDO> getAppBannersBySort() {
        return farmBannerDao.getAppBannersBySort();
    }

    @Override
    public FarmBannerDO get(Long id) {
        return farmBannerDao.get(id);
    }

    @Override
    public List<FarmBannerDO> list(Map<String, Object> map) {
        return farmBannerDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return farmBannerDao.count(map);
    }

    @Override
    public int save(FarmBannerDO farmBanner) {
        return farmBannerDao.save(farmBanner);
    }

    @Override
    public int update(FarmBannerDO farmBanner) {
        return farmBannerDao.update(farmBanner);
    }

    @Override
    public int remove(Long id) {
        return farmBannerDao.remove(id);
    }

    @Override
    public int batchRemove(Long[] ids) {
        return farmBannerDao.batchRemove(ids);
    }

}
